using System;
using System.ComponentModel;

namespace GuitarChordFinder
{
    /// <summary>
    /// Each of the 12 basic notes from A to G#. Code is the note descriptor.
    /// </summary>
    public class Note : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string code;
        public string Code
        {
            get { return code; }
            set
            {
                code = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Code"));
            }
        }

        private string imageSource;
        public string ImageSource
        {
            get { return imageSource; }
            set 
            { 
                imageSource = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("ImageSource"));
            }
        }
    }
}